﻿@model IEnumerable<AuditModel.AnnualEvent>

@{
    ViewBag.Title = AuditResources.UI.PageTitle;
}

<h2>管理 @AuditResources.AnnualEvents.ObjectName</h2>

<p>
    @Html.ActionLink(AuditResources.UI.Create+AuditResources.AnnualEvents.ObjectName, "Create", new { }, new { Class = "button" })
</p>
<table>
    <tr>
        <th>
            @AuditResources.AnnualEvents.ID
        </th>
        <th>
            @AuditResources.AnnualEvents.Title
        </th>
        <th>
            @AuditResources.AnnualEvents.Year
        </th>
        <th>
            @AuditResources.AnnualEvents.Status
        </th>
        <th></th>
    </tr>

@foreach (var item in Model)
{
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.ID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Title)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Year)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Status)
        </td>
        <td>
            @Html.ActionLink("详细", "Details", new { id = item.ID }, new { Class = "button" }) |
            @Html.ActionLink("编辑", "Edit", new { id = item.ID }, new { Class = "button" }) |
            @Html.ActionLink("删除", "Delete", new { id = item.ID }, new { Class = "button" })
        </td>
    </tr>
}

</table>
